﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HaumDisplay
{
    public class HaumPoint
    {
        /// <summary>
        /// 点坐标
        /// </summary>
        public PointF point;

        private Color _selectColor;
        /// <summary>
        /// 选择颜色
        /// </summary>
        public Color selectColor
        {
            get { return _selectColor; }
        }

        private Color _penColor;
        /// <summary>
        /// 画笔颜色
        /// </summary>
        public Color penColor
        {
            get { return _penColor; }
            set
            {
                _penColor = value;

                int r = 255 - value.R;
                int g = 255 - value.G;
                int b = 255 - value.B;
                _selectColor = Color.FromArgb(r, g, b);
            }
        }

       
        private float _penSize;
        /// <summary>
        /// 画笔宽度
        /// </summary>
        public float penSize
        {
            get { return _penSize; }
            set { _penSize = value; }
        }

        /// <summary>
        /// 是否选中
        /// </summary>
        public bool isSelect;
    }
}
